package com.bootdo.contract.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.contract.dao.YutableDao;
import com.bootdo.contract.domain.YutableDO;
import com.bootdo.contract.service.YutableService;


@Service
public class YutableServiceImpl implements YutableService {
    @Autowired
    private YutableDao yutableDao;

    @Override
    public YutableDO get(Integer id) {
        return yutableDao.get(id);
    }

    @Override
    public List <YutableDO> list(Map <String, Object> map) {
        return yutableDao.list(map);
    }

    @Override
    public int count(Map <String, Object> map) {
        return yutableDao.count(map);
    }

    @Override
    public int save(YutableDO yutable) {
        return yutableDao.save(yutable);
    }

    @Override
    public int update(YutableDO yutable) {
        return yutableDao.update(yutable);
    }

    @Override
    public int remove(Integer id) {
        return yutableDao.remove(id);
    }

    @Override
    public int batchRemove(Integer[] ids) {
        return yutableDao.batchRemove(ids);
    }

    @Override
    public void createStaff(YutableDO yutable) {
        yutableDao.createStaff(yutable);
    }

    @Override
    public void deleteStaff(YutableDO yutable) {
        yutableDao.deleteStaff(yutable);
    }

    @Override
    public void createTestpaper(YutableDO yutable) {
        yutableDao.createTestpaper(yutable);
    }

    @Override
    public void deleteTestpaper(YutableDO yutable) {
        yutableDao.deleteTestpaper(yutable);
    }

    @Override
    public void createAchievement(YutableDO yutable) {
        yutableDao.createAchievement(yutable);
    }

    @Override
    public void deleteAchievement(YutableDO yutable) {
        yutableDao.deleteAchievement(yutable);
    }

}
